#include<bits/stdc++.h>
using namespace std;
int main()
{
	double f;
	cin>>f;
	printf("%.2f",5.0/9*(f-32));
    return 0;
}
